public class Pyramid{
	public static void main(String[] args) {
		int totalLavel=20;
		for (int i=1;i<=totalLavel;i++){
			for (int k=1;k<=(totalLavel-i);k++){
				System.out.print(" ");
			}
			for (int j=1;j<i*2;j++){
				if (j==1||j==(2*i-1)||i==totalLavel){
					System.out.print("*");
				}
				else{
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	}
}